// 模拟数据文件 - 用于管理系统展示

// 用户数据
export const users = [
  {
    id: 1,
    username: 'admin',
    password: '123456',
    realName: '系统管理员',
    email: 'admin@example.com',
    phone: '13800138000',
    role: 'admin',
    status: 1,
    createTime: '2024-01-01 10:00:00',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
  },
  {
    id: 2,
    username: 'editor',
    realName: '内容编辑',
    email: 'editor@example.com',
    phone: '13800138001',
    role: 'editor',
    status: 1,
    createTime: '2024-01-02 11:00:00',
    avatar: 'https://cube.elemecdn.com/1/88/03b0d39583f48206768a7534e55bcpng.png'
  },
  {
    id: 3,
    username: 'user1',
    realName: '普通用户',
    email: 'user1@example.com',
    phone: '13800138002',
    role: 'user',
    status: 1,
    createTime: '2024-01-03 12:00:00',
    avatar: 'https://cube.elemecdn.com/2/88/03b0d39583f48206768a7534e55bcpng.png'
  }
]

// 产品数据
export const products = [
  {
    id: 1,
    name: 'Vue 3 教程',
    price: 99.00,
    category: '技术教程',
    description: 'Vue 3 从入门到精通',
    stock: 100,
    sales: 50,
    status: 1,
    createTime: '2024-01-01 10:00:00',
    image: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
  },
  {
    id: 2,
    name: 'React 实战',
    price: 129.00,
    category: '技术教程',
    description: 'React 全栈开发实战',
    stock: 80,
    sales: 30,
    status: 1,
    createTime: '2024-01-02 11:00:00',
    image: 'https://cube.elemecdn.com/4/7c/3ea6beec64369c2642b92c6726f1epng.png'
  },
  {
    id: 3,
    name: 'Node.js 进阶',
    price: 159.00,
    category: '技术教程',
    description: 'Node.js 高级编程与性能优化',
    stock: 50,
    sales: 20,
    status: 1,
    createTime: '2024-01-03 12:00:00',
    image: 'https://cube.elemecdn.com/5/7c/3ea6beec64369c2642b92c6726f1epng.png'
  }
]

// 仪表盘统计数据
export const dashboardStats = {
  totalUsers: 1234,
  todayUsers: 456,
  totalProducts: 789,
  todaySales: 123,
  totalSales: 5678,
  avgOrderAmount: 234.56,
  dailyActivity: [
    { date: '1月1日', users: 420, sales: 240 },
    { date: '1月2日', users: 380, sales: 230 },
    { date: '1月3日', users: 450, sales: 270 },
    { date: '1月4日', users: 500, sales: 290 },
    { date: '1月5日', users: 520, sales: 310 },
    { date: '1月6日', users: 580, sales: 340 },
    { date: '1月7日', users: 620, sales: 380 }
  ],
  categoryDistribution: [
    { name: '技术教程', value: 45 },
    { name: '开发工具', value: 25 },
    { name: '设计资源', value: 20 },
    { name: '其他', value: 10 }
  ]
}

// 系统设置配置
export const systemSettings = {
  siteName: '管理系统',
  siteDesc: '基于Vue 3 + Element Plus的管理系统',
  logoUrl: '/vite.svg',
  themeColor: '#409EFF',
  copyright: '© 2024 管理系统',
  enableRegister: true,
  enableCaptcha: true,
  pageSize: 10,
  cacheTime: 30
}
